<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <base href="${pageContext.request.contextPath}/"/>
<link type="text/css" rel="stylesheet" href="css/company.css" />
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="js/company.js"></script>
    <script type="text/javascript">
       function load() {
          var status = "${userJobEnterprise.jobuserstatus}";
          if(status=="1"){
             $(".divJob_2_1").text("已申请");
             $(".divJob_2_1").addClass("ysqbtn");
          }else if (status=="0"||status=="null"||status==null||status==""){
             $(".divJob_2_1").text("立即申请");
             $(".divJob_2_1").addClass("ljsqbtn");
          }
       }

        $(document).on("click",".divJob_2_1",function () {
            var jid = ${userJobEnterprise.jid};
            var eid = <%=request.getParameter("eid")%>
            var jobuserstatus;
            if ($(this).text()==="立即申请"){
                jobuserstatus = 1;
                $(this).text("已申请");
                $(this).addClass("ysqbtn");
                $.get("userjobenterprise/addapplication","jid="+jid+"&jobuserstatus="+jobuserstatus+"&eid="+eid);
            }
        })
    </script>
<title>职位信息</title>
</head>

<body onload="load();">
<div class="compHeader">
  <div class="main">
     <div class="header_l">
        <a href="index.jsp">
           <img src="images/logo_1.png" />
           <img src="images/logo_2.png" />
        </a>
        <span>www.xxx.com</span>
     </div>
     <div class="header_c">
        <input name="" type="text" placeholder="请输入关键字..." class="keyword"/>
        <input name="" type="button" class="btnsearch"/>
     </div>
     <div class="header_r">
        <a href="login.jsp">个人登录</a>
        <a href="register.jsp">注册</a>
     </div>
  </div>
</div>

<div class="jobtypeBox">
   <div class="DivLeft">
      <div class="DivCompany">
         <div class="DivCompany_img"><img src="images/company.gif" width="180"/></div>
         <h1><a href="selectEnterprise?eid=${userJobEnterprise.enterprise.eid}">${userJobEnterprise.enterprise.ename}</a><img src="images/16.png" /></h1>
         <div class="clear"></div>
         <div class="DivLeft_2">
            <p>行业：${userJobEnterprise.job.jname}</p>
            <p>性质：${userJobEnterprise.job.enterprise.edomain}</p>
            <p>规模：${userJobEnterprise.job.enterprise.escale}</p>
            <p>企业主页：<a href="">${userJobEnterprise.job.enterprise.ewebsite}</a></p>
            <p>详细地址：${userJobEnterprise.job.enterprise.eaddress}</p>
            <p>${userJobEnterprise.job.enterprise.eprofile}</p>
         </div>
         <div class="clear"></div>
      </div>
   </div>
   <div class="DivRight">
      <div class="DivRight_2">
         <div class="divJob_1">
            <div class="divJob_l">
               <div class="tit">
                  <h2>${userJobEnterprise.job.jname}</h2>
                  <div class="clear"></div>
               </div>
               <div class="bqbox">
                  <label>年终奖</label>
                  <label>节日福利</label>
                  <label>双休</label>
                  <label>8小时工作制</label>
                  <label>带薪年假</label>
                  <label>交通补贴</label>
                  <div class="clear"></div>
               </div>
               <div class="jobsub">工作地点： ${userJobEnterprise.job.jplace}</div>
               <div class="jobsub">职位月薪： ${userJobEnterprise.job.jmonthsalary} [参考工资]</div>
               <div class="jobsub">招聘人数： ${userJobEnterprise.job.jrecruitsbumber}</div>
               <div class="jobsub">最低学历： ${userJobEnterprise.job.jmineducation}</div>
               <div class="jobsub">年龄要求： ${userJobEnterprise.job.jagerequirement}</div>
               <div class="jobsub">工作经验： ${userJobEnterprise.job.jexperience}</div>
               <div class="jobsub">招聘方式： ${userJobEnterprise.job.jrecruitmentmethod}</div>
               <div class="jobsub">刷新日期： ${userJobEnterprise.job.jrefreshdatestr}</div>
            </div>
         </div>
         <div class="clear"></div>
         <div class="divJob_2">
            <div class="divJob_2_1">立即申请</div>
         </div>
         <div class="clear"></div>
         <div class="divJob_3">
            <b>岗位职责：</b><br />
            <div class="con">
               ${userJobEnterprise.job.jresponsibility}
            </div>
            <b>岗位要求：</b><br />
            <div class="con">
               ${userJobEnterprise.job.jrequirements}
            </div>
         </div>
         <div class="clear"></div>
      </div>
   </div>
</div>

<div class="clear"></div>
<div class="footer">
</div>
</body>
</html>
